package edu.chl.tda367.mynotes.ctrl;

import edu.chl.tda367.mynotes.core.MyNotes;

/*
 * A controller class that checks if the user presses undo or redo. Updates
 * the model after this.
 */

public class UndoRedoCtrl implements ICtrl {

	public void execute(String s){
		
		if(s.equals("undo")){
			MyNotes.getInstance().undoChanges();
		} else if(s.equals("redo")){
			MyNotes.getInstance().redoChanges();
		}
	}

	@Override
	public void execute() {
		
	}
}
